package com.ruoyi.web.group.playerscores.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 球员得分实体
 */
@Data
@TableName("player_scores")
public class PlayerScores implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 得分记录ID，主键
     */
    @TableId(type = IdType.AUTO)
    private Integer scoreId;

    /**
     * 球员ID
     */
    private Integer playerId;

    /**
     * 比赛ID
     */
    private Integer matchId;

    /**
     * 得分
     */
    private Integer pointsScored ;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
}